<div class="span3 son-noMarginL rightMenu">
	<div class="row-fluid posterity-noMargin">
		<form action="<?php echo url('htmltemplate/index'); ?>">
			<div class="span12"><h4>Html模板 - 分类</h4></div>
			<div class="span12"><strong>区域</strong></div>
			<?php if(!empty($beusedTypeAreas)):?>
		        <?php foreach($beusedTypeAreas as $k => $area): ?>
		        	<?php $currChecked = ((!empty($filter['type_area_id'])) && in_array($area['id'], $filter['type_area_id']))? true : false; ?>
		        	<div class="span4">
			        	<label class="label_check">
						    <input name="filter[type_area_id][<?php echo $k; ?>]" value="<?php echo $area['id']; ?>" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> />
						    <?php echo $area['name']; ?>
						</label> 
					</div>
				<?php endforeach; ?>
			<?php endif; ?>
			
			<div class="span12"><strong>用途</strong></div>
			<?php if(!empty($beusedTypeUsings)):?>
		        <?php foreach($beusedTypeUsings as $k => $using): ?>
		        		<?php $currChecked = (!empty($filter['type_using_id']) && in_array($using['id'], $filter['type_using_id']))? true : false; ?>
		        	<div class="span4">
			        	<label class="label_check">
						    <input name="filter[type_using_id][<?php echo $k; ?>]" value="<?php echo $using['id']; ?>" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> />
						    <?php echo $using['name']; ?>
						</label>
					</div>
				<?php endforeach; ?>
			<?php endif; ?>
				
			<div class="span12"><strong>颜色</strong></div>
			<?php if(!empty($beusedTypeColors)):?>
		        	<?php foreach($beusedTypeColors as $k => $color): ?>
		        	<?php $currChecked = ((!empty($filter['type_color_id'])) && in_array($color['id'], $filter['type_color_id']))? true : false; ?>
		        	<div class="span4">
			        	<label class="label_check">
						    <input name="filter[type_color_id][<?php echo $k; ?>]" value="<?php echo $color['id']; ?>" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> />
						    <?php echo $color['name']; ?>
						</label>
					</div>
				<?php endforeach; ?>
			<?php endif; ?>
				
			<div class="span12"><strong>布局</strong></div>
			<?php if(!empty($beusedTypeColumnWidths)):?>
		        <?php foreach($beusedTypeColumnWidths as $k => $cw): ?>
		        		<?php $currChecked = (!empty($filter['type_columnwidth_id']) && in_array($cw['id'], $filter['type_columnwidth_id']))? true : false; ?>
		        	<div class="span4">
			        	<label class="label_check">
						    <input name="filter[type_columnwidth_id][<?php echo $k; ?>]" value="<?php echo $cw['id']; ?>" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> />
						    <?php echo $cw['name']; ?>
						</label>
					</div>
				<?php endforeach; ?>
			<?php endif; ?>
			
			<div class="span12"><strong>侧边栏</strong></div>
			<?php if(!empty($beusedTypeSidebarCorners)):?>
		        <?php foreach($beusedTypeSidebarCorners as $k => $sc): ?>
		        		<?php $currChecked = (!empty($filter['type_sidebarcorner_id']) && in_array($sc['id'], $filter['type_sidebarcorner_id']))? true : false; ?>
		        	<div class="span4">
			        	<label class="label_check">
						    <input name="filter[type_sidebarcorner_id][<?php echo $k; ?>]" value="<?php echo $sc['id']; ?>" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> />
						    <?php echo $sc['name']; ?>
						</label>
					</div>
				<?php endforeach; ?>
			<?php endif; ?>
			
			<div class="span6">
				<div class="btn-group">
					<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
						筛选
						<span class="caret"></span>
					</button>
					<ul class="dropdown-menu">
						<li><a><input class="btn span12" type="submit" name="search_mode_all" value="完全匹配查询(精确)" /></a></li>
						<li><a><input class="btn btn-inverse span12" type="submit" name="search_mode_part" value="仅需部分匹配查询" /></a></li>
					</ul>
				</div>
			</div>
		</form>
	</div>
			
	<hr class="span3 noMa" />
	
	<div class="row-fluid posterity-noMargin">
		<div class="span12"><h4>Jquery插件 - 分类</h4></div>
		<?php if(!empty($beusedJqueryTypes)):?>
	        <?php foreach($beusedJqueryTypes as $k => $jt): ?>
	        	<div class="span6 hoveranimate"><a href="<?php echo url('jqueryplugin/index', array('page' => $page, 'type_id' => $jt['id'])); ?>"><?php echo $jt['name']; ?></a></div>
			<?php endforeach; ?>
		<?php endif; ?>
	</div>
</div>

